#ifndef LOGPOSTBACK_H
#define LOGPOSTBACK_H

#pragma once

#include <QObject>
#include <QNetworkAccessManager>
#include <QNetworkReply>

namespace ns_yht
{
    class LogPostback : public QObject
    {
        Q_OBJECT
    public:
        LogPostback();
        ~LogPostback();

    public slots:
        void onPostlog_alert(int mtype, qint64 mtime, int minfo);
        void onPostlog_system(int mtype, qint64 mtime);
        void onPostHeartbeat();

    private slots:
        void onReplyFinished_alert(QNetworkReply *reply);
        void onReplyFinished_system(QNetworkReply *reply);
        void onReplyFinished_heartbeat(QNetworkReply *reply);

    private:
        QNetworkAccessManager *m_pNetworkAccessManager;
    };

}
#endif